package com.xyoto.community.vo;

import com.xyoto.community.utils.PictureUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 热门话题榜VO
 */
@Data
@ApiModel("热门排行-话题榜VO")
public class HotTopicVO {
    @ApiModelProperty("话题id")
    private Integer topicId;

    @ApiModelProperty("话题标题")
    private String title;

    @ApiModelProperty("话题描述内容")
    private String  content;

    @ApiModelProperty("该话题下的动态数")
    private Integer dynamicCount;

    @ApiModelProperty("该话题的关注人数")
    private Integer followCount;

    @ApiModelProperty("话题图像")
    private String path;

    @ApiModelProperty("是否可以发布匿名动态 1、不可以 2可以")
    private Integer status;

    public void setPath(String path) {
        this.path = PictureUtils.addPrefix(path);
    }
}
